package org.dromara.common.mongo;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.xml.bind.annotation.XmlType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.time.LocalDateTime;


@Schema(description = "会话对象sessionVO")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Session {

    @MongoId
    private String id;

    @Schema(description = "所属智能体")
    private Long smartAgentId;

    @Schema(description = "智能体名称")
    private String smartAgentName;

    @Schema(description = "会话唯一ID")
    private String sessionId;

    @Schema(description = "会话名字")
    private String sessionName;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "最后一次更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "最后一条消息")
    private String content;


}
